package org.example.day20240822;

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        List<employee> employees = new ArrayList<>();
        employee employee = new cleaner("zhangsan",50.0, 30);
        employee employee1 = new developer("lisi",5000.0);
        employees.add(employee);
        employees.add(employee1);

        for(employee employee2 : employees){
            System.out.println(employee2.countSalary());
        }
    }
}
